package org.example.crop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName t_crop
 */
@TableName(value ="t_crop")
@Data
public class Crop implements Serializable {
    /**
     * 唯一标识（雪花算法）
     */
    @TableId
    private String id;

    /**
     * 作物名称
     */
    private String name;

    /**
     * 作物类型
     */
    private Integer typeId;

    /**
     * 肥料名称
     */
    private String fertilizerName;

    /**
     * 种植
     */
    private Integer plantId;

    /**
     * 种植年度
     */
    private String plantAge;

    /**
     * 是否套袋
     */
    private Integer flat;

    /**
     * 育苗周期
     */
    private String seedlingCycle;

    /**
     * 灌溉周期
     */
    private String irrigationCycle;

    /**
     * 施肥周期
     */
    private String fertilizationCycle;

    /**
     * 除草周期
     */
    private String weedingCycle;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 备注
     */
    private String remark;

    /**
     * 农户id
     */
    private Integer userId;
    private Integer status;

    /**
     * 登记时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;
    @TableField(exist = false)
    private String pname;
    @TableField(exist = false)
    private String tname;
    @TableField(exist = false)
    private String uname;
    @TableField(exist = false)
    private String utel;
    @TableField(exist = false)
    private Integer num;
    @TableField(exist = false)
    private Integer size;
    @TableField(exist = false)
    private String zname;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}